import request from "@/api/myRequest.js"
// 订单列表
function findOrdersByPage(start,limit,data){
	 return request({
		 url:`/lejuAdmin/order/findOrdersByPage/${start}/${limit}`,
		 method:"POST",
		 data
		
		 
	 })
 }
 // 查看订单明细
 function orderDetail(orderId){
 	 return request({
 		 url:`/lejuAdmin/order/orderDetail/${orderId}`,
 		 method:"GET",
 		
 		
 		 
 	 })
  }
  // 确认发货
  function sendDone(data){
  	 return request({
  		 url:"/lejuAdmin/order/sendDone",
  		 method:"POST",
		 data
		
  		
  		
  		 
  	 })
   }
   // 关闭订单
   function finishOrder(orderId){
   	 return request({
   		 url:`/lejuAdmin/order/finishOrder/${orderId}`,
   		 method:"POST",
   		
   		
   		 
   	 })
    }
	// 确认强制发货
	function receiveProductsForce(orderId){
		 return request({
			 url:`/lejuAdmin/order/receiveProductsForce/${orderId}`,
			 method:"POST",
			
			
			 
		 })
	 }
 export{
	 findOrdersByPage,
	 orderDetail,
	 sendDone,
	 finishOrder,
	 receiveProductsForce
 }